package com.wlz.behavioral.observer;

public class Client {
    public static void main(String[] args) {
        //两个观察者产生出来
        IUndercover weiUndercover = new WeiUndercover();
        IUndercover wuUndercover = new WuUndercover();

        //定义出刘备
        Liubei liubei = new Liubei();
        //添加卧底
        liubei.addObserver(weiUndercover);
        liubei.addObserver(wuUndercover);

        //然后这里我们看看韩非子在干什么
        liubei.haveFun();
    }
}
